Skip to content

feat: developer toggle for test data in debug builds#4

Merged
JanJetze merged 1 commit intomasterfrom
feat/dev-test-data
Mar 6, 2026
Merged

feat: developer toggle for test data in debug builds#4
JanJetze merged 1 commit intomasterfrom
feat/dev-test-data

Conversation

@JanJetze
Copy link
Copy Markdown
Owner

@JanJetze JanJetze commented Mar 6, 2026

Summary

  • Adds a "Use test data" switch in Settings > Developer (visible only in debug builds)
  • When enabled, replaces real sensor data with generated test data on both the Dashboard and Activities screens
  • Each date produces a unique but deterministic pattern using date-seeded randomization with 7 day-type archetypes (commute, active, rest, long-run, mixed, afternoon-heavy, morning-heavy)

Test plan

  • Install debug build, open Settings, verify "Developer" section appears at the bottom
  • Toggle "Use test data" on — Dashboard should show fake steps, weekly chart, and transitions
  • Navigate to Activities screen — should show generated sessions and step graph data
  • Navigate between dates in Activities — each day should look different
  • Toggle "Use test data" off — both screens should revert to real data
  • Build a release APK and verify the Developer section is not visible

🤖 Generated with Claude Code

Adds a "Use test data" switch in Settings > Developer (debug only)
that replaces real sensor data with generated test data on both
the Dashboard and Activities screens. Each date produces a unique
pattern using date-seeded randomization with 7 day-type archetypes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@JanJetze JanJetze merged commit 07ad085 into master Mar 6, 2026
1 check failed
@JanJetze JanJetze deleted the feat/dev-test-data branch March 6, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant